#!/bin/sh
for d in "$@"; do
	(
		BASE="$(basename "$d")"
		DIR="$(dirname "$d")"
		cd "$DIR"
		echo "$(/bin/pwd)/$BASE"
	)
done
